package cn.lyd.org.service;

import cn.lyd.org.domain.Shop;
import cn.lyd.basic.service.IBaseService;
import cn.lyd.org.domain.ShopAuditLog;
import cn.lyd.org.dto.ShopDto;
import org.springframework.web.bind.annotation.PathVariable;

import javax.mail.MessagingException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Tom
 * @since 2022-11-01
 */
public interface IShopService extends IBaseService<Shop> {

    /**
     * 店铺入驻
     * @param shop
     */
    void settlement(Shop shop);

    /**
     * 店铺入驻审核-通过
     * @param log
     */
    void pass(ShopAuditLog log) throws MessagingException;
    /**
     * 店铺入驻审核-不通过
     * @param log
     */
    void reject(ShopAuditLog log) throws MessagingException;

    /**
     * 报表 echarts
     * @return
     */
    List<ShopDto> getCountByState();

    /**
     * 店铺激活
     * @param shopId
     * @param shopId
     */
    void active(@PathVariable() Long shopId);

}
